package com.structural.bridge.draw;

import com.structural.bridge.draw.api.GreenCircle;
import com.structural.bridge.draw.api.RedCircle;
import com.structural.bridge.draw.shape.Circle;
import com.structural.bridge.draw.shape.Shape;

/**
 * <p></p>
 *
 * @author jiuhua.xu
 * @version 1.0
 * @since JDK 1.8
 */
public class BridgePatternDemo {

    public static void main(String[] args) {

        Shape r = new Circle(new RedCircle(), 100, 100, 10);

        Shape g = new Circle(new GreenCircle(), 100, 100, 10);

        r.draw();
        g.draw();

    }
}
